import threading
import time
import requests
import queue
import  json
from pymodbus.client.sync import  ModbusSerialClient
from flask import Flask, session, redirect, url_for, escape, request, jsonify
import json
from DBUtils.PooledDB import PooledDB
import os
import pymssql